package com.sg.service.biz.app.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.base.app.req.*;
import com.sg.dto.biz.app.req.*;
import com.sg.dto.biz.app.res.*;
import com.sg.dto.integration.framework.QueryInductionDeptDetailComReqDto;
import com.sg.dto.integration.framework.QueryInductionDeptDetailComRespDto;
import com.sg.service.biz.app.AchievementDockService;
import com.sg.service.biz.app.AchievementService;
import com.sg.service.biz.app.SmallCircleCommonService;
import com.sg.service.biz.app.TargetCalcService;
import com.sg.common.exception.Assert;
import com.wicket.okrapp.dal.po.mbg.*;
import com.wicket.okrcomponent.integration.InterfaceModeService;
import com.wicket.okrcomponent.integration.FwCompStatisticalDataClient;
import com.wicket.okrcomponent.integration.dto.*;
import com.wicket.okrframework.integration.InductionRecordService;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class AchievementDockServiceImpl implements AchievementDockService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    private MOmsAchievementService mOmsAchievementService;
    @Resource
    private NbAchievementDock nbAchievementDock;
    @Resource
    private AchievementService achievementService;
    @Resource
    private InterfaceModeService interfaceModeService;
    @Resource
    private InductionRecordService inductionRecordService;
    @Resource
    private MOmsTargetObjectivePlanExtendService mOmsTargetObjectivePlanExtendService;
    @Resource
    private MOmsVirtualOrgMemberDeptService mOmsVirtualOrgMemberDeptService;
    @Resource
    private MOmsVirtualOrgMemberService mOmsVirtualOrgMemberService;

    /**
     * D3查询成果对接关系列表(公共)[9254]
     * gen by moon at 4/4/2024, 10:37:59 AM
     */
    @Trace(operationName = "D3查询成果对接关系列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryAchievementDockListComRespDto queryAchievementDockListCom(QueryAchievementDockListComReqDto reqDto) {


        List<OmsAchievementDocking> listOmsAchievementDocking_1 = new ArrayList<>();
//步骤0: 3-10-08查询成果对接关系列表 - queryAchievementDockList
        List<OmsAchievementDocking> listOmsAchievementDocking = new ArrayList<>();
        QueryAchievementDockListReq queryAchievementDockListReq = new QueryAchievementDockListReq();
        if (reqDto != null) {
            queryAchievementDockListReq.setDutyDeptId(reqDto.getDutyDeptId());//SimpleFieldAssign//sourceId:1695770_1
            queryAchievementDockListReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1695771_1
            queryAchievementDockListReq.setUpdateCycleId(reqDto.getUpdateCycleId());//SimpleFieldAssign//sourceId:1695772_1
            queryAchievementDockListReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1695773_1
            queryAchievementDockListReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1695774_1
            queryAchievementDockListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1695775_1
            queryAchievementDockListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1695776_1
            queryAchievementDockListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1695777_1
        }

        /*3-10-08查询成果对接关系列表[9255]   */

        listOmsAchievementDocking = mOmsAchievementDockingService.queryAchievementDockList(queryAchievementDockListReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsAchievementDocking_1 = listOmsAchievementDocking;

        QueryAchievementDockListComRespDto retData = new QueryAchievementDockListComRespDto();
        retData.setAchievementDockingList(listOmsAchievementDocking_1.stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1695787_1


        return retData;
    }

    /**
     * D3查询可对接成果列表(公共)[9244]
     * gen by moon at 4/4/2024, 10:37:42 AM
     */
    @Trace(operationName = "D3查询可对接成果列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryAllowDockAchievementListComRespDto queryAllowDockAchievementListCom(QueryAllowDockAchievementListComReqDto reqDto) {


        ImplementReceiveAchievementFieldRespDto receptionServiceRes_1 = null;
//virtualUsage D3分析内容业绩责任部门(公共)  66047
        AnalysisContDutyDeptComRespDto analysisContDutyDeptComRespDto = null;
        AnalysisContDutyDeptComReqDto analysisContDutyDeptComReqDto = new AnalysisContDutyDeptComReqDto();
        if (reqDto != null) {
            analysisContDutyDeptComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1695735_1_66047
            analysisContDutyDeptComReqDto.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1695736_1_66047
            analysisContDutyDeptComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1695737_1_66047
        }

        /*D3分析内容业绩责任部门(公共)[9245]   */
        Assert.isNull(analysisContDutyDeptComReqDto.getUseScene(), "D3查询可对接成果列表(公共)-D3分析内容业绩责任部门(公共)-虚拟组织使用场景不能为空", false);
        Assert.isNull(analysisContDutyDeptComReqDto.getSpaceId(), "D3查询可对接成果列表(公共)-D3分析内容业绩责任部门(公共)-创建于空间ID不能为空", false);
        analysisContDutyDeptComRespDto = analysisContDutyDeptCom(analysisContDutyDeptComReqDto)/*vcase invoke 同服务,同domain*/;


//virtualUsage D3查询成果版权归属列表(公共)  66048
        QueryAchievementCopyrightOwningListComRespDto queryAchievementCopyrightOwningListComRespDto = null;
        if (analysisContDutyDeptComRespDto != null) {
            QueryAchievementCopyrightOwningListComReqDto queryAchievementCopyrightOwningListComReqDto = new QueryAchievementCopyrightOwningListComReqDto();
            queryAchievementCopyrightOwningListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1695757_1_66048
            if (analysisContDutyDeptComRespDto != null) {
                queryAchievementCopyrightOwningListComReqDto.setDutyDeptId(analysisContDutyDeptComRespDto.getDutyDeptId());//SimpleFieldAssign//sourceId:1695756_1_66048
            }
            if (reqDto != null) {
                queryAchievementCopyrightOwningListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1695758_1_66048
            }

            /*D3查询成果版权归属列表(公共)[9252]   */
            Assert.isNull(queryAchievementCopyrightOwningListComReqDto.getDutyDeptId(), "D3查询可对接成果列表(公共)-D3查询成果版权归属列表(公共)-业绩责任部门ID不能为空", false);
            Assert.isNull(queryAchievementCopyrightOwningListComReqDto.getSubjectLifeCycle(), "D3查询可对接成果列表(公共)-D3查询成果版权归属列表(公共)-主体生命周期不能为空", false);
            Assert.isNull(queryAchievementCopyrightOwningListComReqDto.getSpaceId(), "D3查询可对接成果列表(公共)-D3查询成果版权归属列表(公共)-创建于空间ID不能为空", false);
            queryAchievementCopyrightOwningListComRespDto = achievementService.queryAchievementCopyrightOwningListCom(queryAchievementCopyrightOwningListComReqDto)/*vcase invoke isSameApp*/;


        }
//virtualUsage D3查询成果对接关系列表(公共)  66049
        QueryAchievementDockListComRespDto queryAchievementDockListComRespDto = null;
        QueryAchievementDockListComReqDto queryAchievementDockListComReqDto = new QueryAchievementDockListComReqDto();
        queryAchievementDockListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1695796_1_66049
        if (reqDto != null) {
            queryAchievementDockListComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1695794_1_66049
            queryAchievementDockListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1695797_1_66049
        }

        /*D3查询成果对接关系列表(公共)[9254]   */
        Assert.isNull(queryAchievementDockListComReqDto.getSubjectLifeCycle(), "D3查询可对接成果列表(公共)-D3查询成果对接关系列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryAchievementDockListComReqDto.getSpaceId(), "D3查询可对接成果列表(公共)-D3查询成果对接关系列表(公共)-创建于空间ID不能为空", false);
        queryAchievementDockListComRespDto = queryAchievementDockListCom(queryAchievementDockListComReqDto)/*vcase invoke 同服务,同domain*/;


//virtualUsage D2将责任部门成果数据集去除已对接的成果  66050
        ImplementTwoDataRemovalExistsComRespDto implementTwoDataRemovalExistsComRespDto = null;
        if (queryAchievementCopyrightOwningListComRespDto != null && queryAchievementDockListComRespDto != null) {
            ImplementTwoDataRemovalExistsComReqDto implementTwoDataRemovalExistsComReqDto = new ImplementTwoDataRemovalExistsComReqDto();
            if (queryAchievementCopyrightOwningListComRespDto != null && queryAchievementCopyrightOwningListComRespDto.getAchievementCopyrightOwningList() != null && !CollectionUtil.isEmpty(queryAchievementCopyrightOwningListComRespDto.getAchievementCopyrightOwningList())) {
                implementTwoDataRemovalExistsComReqDto.setDataSetsListOne(//objList-to-objLists
                        queryAchievementCopyrightOwningListComRespDto.getAchievementCopyrightOwningList().stream().map(item -> {
                            com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
                            if (item != null) {
                                elm.setCustomField(item.getAchievementId());//SimpleFieldAssign//sourceId:333728_2_66050
                            }
                            return elm;
                        }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1695800_1_66050
            }
            if (queryAchievementDockListComRespDto != null && queryAchievementDockListComRespDto.getAchievementDockingList() != null && !CollectionUtil.isEmpty(queryAchievementDockListComRespDto.getAchievementDockingList())) {
                implementTwoDataRemovalExistsComReqDto.setDataSetsListTwo(//objList-to-objLists
                        queryAchievementDockListComRespDto.getAchievementDockingList().stream().map(item -> {
                            DataSetsListTwoDto elm = new DataSetsListTwoDto();
                            if (item != null) {
                                elm.setCustomField(item.getAchievementId());//SimpleFieldAssign//sourceId:333733_2_66050
                            }
                            return elm;
                        }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1695801_1_66050
            }

            /*D2将责任部门成果数据集去除已对接的成果[5347]   */

            implementTwoDataRemovalExistsComRespDto = interfaceModeService.implementTwoDataRemovalExistsCom(implementTwoDataRemovalExistsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        }
//virtualUsage M3接收过滤后的成果数据集出参  66051
        //ModelCode: receptionService
        ImplementReceiveAchievementFieldRespDto receptionServiceRes = null;
        if (implementTwoDataRemovalExistsComRespDto != null) {
            ImplementReceiveAchievementFieldReqDto receptionServiceReq = new ImplementReceiveAchievementFieldReqDto();
            if (implementTwoDataRemovalExistsComRespDto != null && implementTwoDataRemovalExistsComRespDto.getTwoDataRemovalExistsList() != null && !CollectionUtil.isEmpty(implementTwoDataRemovalExistsComRespDto.getTwoDataRemovalExistsList())) {
                receptionServiceReq.setAchievementList(implementTwoDataRemovalExistsComRespDto.getTwoDataRemovalExistsList().stream().map(item -> item.getCustomField())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1695844_1_66051
            }

            /*M3接收过滤后的成果数据集出参[9159]  用于特殊方法接收上游入参。 */

            receptionServiceRes = nbAchievementDock.implementReceiveAchievementField(receptionServiceReq);


            receptionServiceRes_1 = receptionServiceRes;
        }
        QueryAllowDockAchievementListComRespDto retData = new QueryAllowDockAchievementListComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setAchievementList(receptionServiceRes_1.getAchievementList());//list-field-assign//sourceId:1695845_1
        }


        return retData;
    }

    /**
     * D3分析内容业绩责任部门(公共)[9245]
     * gen by moon at 4/4/2024, 1:53:59 PM
     */
    @Trace(operationName = "D3分析内容业绩责任部门(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AnalysisContDutyDeptComRespDto analysisContDutyDeptCom(AnalysisContDutyDeptComReqDto reqDto) {


        ImplementReceiveAchievementFieldRespDto receptionServiceRes_1 = null;
        if ((reqDto != null && reqDto.getUseScene() != null && reqDto.getUseScene().equals("TARGET_PLAN_SCENE") && reqDto != null && reqDto.getTargetCycleContentId() != null)) {
            //if((D3分析内容业绩责任部门(公共).虚拟组织使用场景 等于 目标规划场景 and D3分析内容业绩责任部门(公共).归属目标内容ID 值不等于空 ))  66036

            QueryTargetContMemberSmallCircleDetailComRespDto queryTargetContMemberSmallCircleDetailComRespDto = null;
            QueryTargetContMemberSmallCircleDetailComReqDto queryTargetContMemberSmallCircleDetailComReqDto = new QueryTargetContMemberSmallCircleDetailComReqDto();
            queryTargetContMemberSmallCircleDetailComReqDto.setIsPersonCharge("TRUE");//sourceId:1695700_1_66057
            queryTargetContMemberSmallCircleDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1695703_1_66057
            if (reqDto != null) {
                queryTargetContMemberSmallCircleDetailComReqDto.setEntityId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1695699_1_66057
                queryTargetContMemberSmallCircleDetailComReqDto.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1695702_1_66057
                queryTargetContMemberSmallCircleDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1695704_1_66057
            }

            /*D3查目标内容责任人小圈子(用于获取内容负责人就职记录)[9251]   */
            Assert.isNull(queryTargetContMemberSmallCircleDetailComReqDto.getEntityId(), "D3分析内容业绩责任部门(公共)-D3查目标内容责任人小圈子(用于获取内容负责人就职记录)-冗余内容表主键ID不能为空", false);
            Assert.isNull(queryTargetContMemberSmallCircleDetailComReqDto.getIsPersonCharge(), "D3分析内容业绩责任部门(公共)-D3查目标内容责任人小圈子(用于获取内容负责人就职记录)-是否负责人不能为空", false);
            Assert.isNull(queryTargetContMemberSmallCircleDetailComReqDto.getUseScene(), "D3分析内容业绩责任部门(公共)-D3查目标内容责任人小圈子(用于获取内容负责人就职记录)-虚拟组织使用场景不能为空", false);
            Assert.isNull(queryTargetContMemberSmallCircleDetailComReqDto.getSubjectLifeCycle(), "D3分析内容业绩责任部门(公共)-D3查目标内容责任人小圈子(用于获取内容负责人就职记录)-主体生命周期不能为空", false);
            Assert.isNull(queryTargetContMemberSmallCircleDetailComReqDto.getSpaceId(), "D3分析内容业绩责任部门(公共)-D3查目标内容责任人小圈子(用于获取内容负责人就职记录)-创建于空间ID不能为空", false);
            queryTargetContMemberSmallCircleDetailComRespDto = queryTargetContMemberSmallCircleDetailCom(queryTargetContMemberSmallCircleDetailComReqDto)/*vcase invoke 同服务,同domain*/;


            QueryInductionDeptDetailComRespDto queryInductionDeptDetailComRespDto = null;
            if (queryTargetContMemberSmallCircleDetailComRespDto != null) {
                QueryInductionDeptDetailComReqDto queryInductionDeptDetailComReqDto = new QueryInductionDeptDetailComReqDto();
                queryInductionDeptDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1695711_1_66058
                if (queryTargetContMemberSmallCircleDetailComRespDto != null) {
                    queryInductionDeptDetailComReqDto.setInductionRecordId(queryTargetContMemberSmallCircleDetailComRespDto.getVirtualOrgInductionRecordId());//SimpleFieldAssign//sourceId:1695710_1_66058
                }

                /*D1查目标内容负责人就职的一级部门ID[7829]   */
                Assert.isNull(queryInductionDeptDetailComReqDto.getInductionRecordId(), "D3分析内容业绩责任部门(公共)-D1查目标内容负责人就职的一级部门ID-就职记录ID不能为空", false);
                Assert.isNull(queryInductionDeptDetailComReqDto.getSpaceId(), "D3分析内容业绩责任部门(公共)-D1查目标内容负责人就职的一级部门ID-创建于空间ID不能为空", false);
                queryInductionDeptDetailComRespDto = inductionRecordService.queryInductionDeptDetailCom(queryInductionDeptDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
//ModelCode: receptionService
            ImplementReceiveAchievementFieldRespDto receptionServiceRes = null;
            if (queryInductionDeptDetailComRespDto != null) {
                ImplementReceiveAchievementFieldReqDto receptionServiceReq = new ImplementReceiveAchievementFieldReqDto();
                if (queryInductionDeptDetailComRespDto != null) {
                    receptionServiceReq.setDutyDeptId(queryInductionDeptDetailComRespDto.getPrimaryDeptId());//SimpleFieldAssign//sourceId:1695665_1_66059
                }

                /*M3接收业绩责任部门出参[9159]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq.getDutyDeptId(), "D3分析内容业绩责任部门(公共)-M3接收业绩责任部门出参-业绩责任部门ID不能为空", false);
                receptionServiceRes = nbAchievementDock.implementReceiveAchievementField(receptionServiceReq);


                receptionServiceRes_1 = receptionServiceRes;
            }
        } else if ((reqDto != null && reqDto.getUseScene() != null && reqDto.getUseScene().equals("PERFORMANCE_SCENE"))) {
            //elseif(D3分析内容业绩责任部门(公共).虚拟组织使用场景 等于 绩效评价场景)  66037

        }
        AnalysisContDutyDeptComRespDto retData = new AnalysisContDutyDeptComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setDutyDeptId(receptionServiceRes_1.getDutyDeptId());//SimpleFieldAssign//sourceId:1695734_1
        }


        return retData;
    }

    /**
     * D3查询指标扩展设置详情(公共)[9247]
     * gen by moon at 5/13/2024, 11:19:57 PM
     */
    @Trace(operationName = "D3查询指标扩展设置详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryObjtiveExtSetDetailComRespDto queryObjtiveExtSetDetailCom(QueryObjtiveExtSetDetailComReqDto reqDto) {


        OmsTargetObjectivePlanExtend omsTargetObjectivePlanExtend_1 = null;
//步骤0: 3-3-05查询指标扩展设置详情 - queryObjtiveExtSetDetail
        OmsTargetObjectivePlanExtend omsTargetObjectivePlanExtend = null;
        QueryObjtiveExtSetDetailReq queryObjtiveExtSetDetailReq = new QueryObjtiveExtSetDetailReq();
        if (reqDto != null) {
            queryObjtiveExtSetDetailReq.setObjectiveId(reqDto.getObjectiveId());//SimpleFieldAssign//sourceId:1695539_1
            queryObjtiveExtSetDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1695540_1
            queryObjtiveExtSetDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1695541_1
            queryObjtiveExtSetDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1695542_1
        }

        /*3-3-05查询指标扩展设置详情[9246]   */
        Assert.isNull(queryObjtiveExtSetDetailReq.getObjectiveId(), "D3查询指标扩展设置详情(公共)-3-3-05查询指标扩展设置详情-归属指标ID不能为空", false);
        omsTargetObjectivePlanExtend = mOmsTargetObjectivePlanExtendService.queryObjtiveExtSetDetail(queryObjtiveExtSetDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsTargetObjectivePlanExtend_1 = omsTargetObjectivePlanExtend;

        QueryObjtiveExtSetDetailComRespDto retData = new QueryObjtiveExtSetDetailComRespDto();
        if (omsTargetObjectivePlanExtend_1 != null) {
            retData.setObjectivePlanningExtendId(omsTargetObjectivePlanExtend_1.getObjectivePlanningExtendId());//SimpleFieldAssign//sourceId:1695551_1
            retData.setObjectiveId(omsTargetObjectivePlanExtend_1.getObjectiveId());//SimpleFieldAssign//sourceId:1695552_1
            retData.setRespBodyType(omsTargetObjectivePlanExtend_1.getRespBodyType());//SimpleFieldAssign//sourceId:1695553_1
            retData.setQuantitativeRatingType(omsTargetObjectivePlanExtend_1.getQuantitativeRatingType());//SimpleFieldAssign//sourceId:1753902_1
            retData.setActualValuePerAddOrSub(omsTargetObjectivePlanExtend_1.getActualValuePerAddOrSub());//SimpleFieldAssign//sourceId:1753903_1
            retData.setActualValueScorePerAddOrSub(omsTargetObjectivePlanExtend_1.getActualValueScorePerAddOrSub());//SimpleFieldAssign//sourceId:1753904_1
            retData.setIsCeilingScore(omsTargetObjectivePlanExtend_1.getIsCeilingScore());//SimpleFieldAssign//sourceId:1753905_1
            retData.setIndicatorKind(omsTargetObjectivePlanExtend_1.getIndicatorKind());//SimpleFieldAssign//sourceId:1797543_1
            retData.setIsCustomObjective(omsTargetObjectivePlanExtend_1.getIsCustomObjective());//SimpleFieldAssign//sourceId:1797544_1
        }


        return retData;
    }

    /**
     * D3查询目标内容部门小圈子详情(公共)[9249]
     * gen by moon at 4/4/2024, 10:37:53 AM
     */
    @Trace(operationName = "D3查询目标内容部门小圈子详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryTargetContDeptSmallCircleDetailComRespDto queryTargetContDeptSmallCircleDetailCom(QueryTargetContDeptSmallCircleDetailComReqDto reqDto) {


        OmsVirtualOrgMemberDept omsVirtualOrgMemberDept_1 = null;
//步骤0: 3-6-03查询目标内容部门小圈子详情 - queryTargetContDeptSmallCircleDetail
        OmsVirtualOrgMemberDept omsVirtualOrgMemberDept = null;
        QueryTargetContDeptSmallCircleDetailReq queryTargetContDeptSmallCircleDetailReq = new QueryTargetContDeptSmallCircleDetailReq();
        if (reqDto != null) {
            queryTargetContDeptSmallCircleDetailReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1695578_1
            queryTargetContDeptSmallCircleDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1695595_1
            queryTargetContDeptSmallCircleDetailReq.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1695579_1
            queryTargetContDeptSmallCircleDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1695580_1
            queryTargetContDeptSmallCircleDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1695581_1
        }

        /*3-6-03查询目标内容部门小圈子详情[9248]   */
        Assert.isNull(queryTargetContDeptSmallCircleDetailReq.getSpaceId(), "D3查询目标内容部门小圈子详情(公共)-3-6-03查询目标内容部门小圈子详情-创建于空间ID不能为空", false);
        omsVirtualOrgMemberDept = mOmsVirtualOrgMemberDeptService.queryTargetContDeptSmallCircleDetail(queryTargetContDeptSmallCircleDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsVirtualOrgMemberDept_1 = omsVirtualOrgMemberDept;

        QueryTargetContDeptSmallCircleDetailComRespDto retData = new QueryTargetContDeptSmallCircleDetailComRespDto();
        if (omsVirtualOrgMemberDept_1 != null) {
            retData.setVirtualOrgMemberDeptId(omsVirtualOrgMemberDept_1.getVirtualOrgMemberDeptId());//SimpleFieldAssign//sourceId:1695586_1
            retData.setVirtualOrgId(omsVirtualOrgMemberDept_1.getVirtualOrgId());//SimpleFieldAssign//sourceId:1695587_1
            retData.setDeptType(omsVirtualOrgMemberDept_1.getDeptType());//SimpleFieldAssign//sourceId:1695588_1
            retData.setDeptId(omsVirtualOrgMemberDept_1.getDeptId());//SimpleFieldAssign//sourceId:1695589_1
        }


        return retData;
    }

    /**
     * D3查询目标内容成员小圈子详情(公共)[9251]
     * gen by moon at 4/4/2024, 10:37:57 AM
     */
    @Trace(operationName = "D3查询目标内容成员小圈子详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryTargetContMemberSmallCircleDetailComRespDto queryTargetContMemberSmallCircleDetailCom(QueryTargetContMemberSmallCircleDetailComReqDto reqDto) {


        OmsVirtualOrgMember omsVirtualOrgMember_1 = null;
//步骤0: 3-6-02查询目标内容责任人小圈子详情 - queryTargetContInitiatorSmallCircleDetail
        OmsVirtualOrgMember omsVirtualOrgMember = null;
        QueryTargetContInitiatorSmallCircleDetailReq queryTargetContInitiatorSmallCircleDetailReq = new QueryTargetContInitiatorSmallCircleDetailReq();
        if (reqDto != null) {
            queryTargetContInitiatorSmallCircleDetailReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1695677_1
            queryTargetContInitiatorSmallCircleDetailReq.setIsPersonCharge(reqDto.getIsPersonCharge());//SimpleFieldAssign//sourceId:1695678_1
            queryTargetContInitiatorSmallCircleDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1695679_1
            queryTargetContInitiatorSmallCircleDetailReq.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1695680_1
            queryTargetContInitiatorSmallCircleDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1695681_1
            queryTargetContInitiatorSmallCircleDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1695682_1
        }

        /*3-6-02查询目标内容责任人小圈子详情[9250]   */
        Assert.isNull(queryTargetContInitiatorSmallCircleDetailReq.getSpaceId(), "D3查询目标内容成员小圈子详情(公共)-3-6-02查询目标内容责任人小圈子详情-创建于空间ID不能为空", false);
        omsVirtualOrgMember = mOmsVirtualOrgMemberService.queryTargetContInitiatorSmallCircleDetail(queryTargetContInitiatorSmallCircleDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsVirtualOrgMember_1 = omsVirtualOrgMember;

        QueryTargetContMemberSmallCircleDetailComRespDto retData = new QueryTargetContMemberSmallCircleDetailComRespDto();
        if (omsVirtualOrgMember_1 != null) {
            retData.setVirtualOrgMemberId(omsVirtualOrgMember_1.getVirtualOrgMemberId());//SimpleFieldAssign//sourceId:1695694_1
            retData.setVirtualOrgId(omsVirtualOrgMember_1.getVirtualOrgId());//SimpleFieldAssign//sourceId:1695695_1
            retData.setVirtualOrgInductionRecordId(omsVirtualOrgMember_1.getVirtualOrgInductionRecordId());//SimpleFieldAssign//sourceId:1695696_1
            retData.setOriginalRoleMemberId(omsVirtualOrgMember_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1695697_1
            retData.setUserId(omsVirtualOrgMember_1.getUserId());//SimpleFieldAssign//sourceId:1695698_1
        }


        return retData;
    }

    /**
     * D3批量查询成果By授予及有效时间(公共)[9259]
     * gen by moon at 4/4/2024, 1:32:47 PM
     */
    @Trace(operationName = "D3批量查询成果By授予及有效时间(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryAchievementByAwardedEndTimeComRespDto batchQueryAchievementByAwardedEndTimeCom(BatchQueryAchievementByAwardedEndTimeComReqDto reqDto) {


        List<OmsAchievement> listOmsAchievement_1 = new ArrayList<>();
//步骤0: 3-10-01批量查询成果By授予及有效时间 - batchQueryAchievementByAwardedEndTime
        List<OmsAchievement> listOmsAchievement = new ArrayList<>();
        BatchQueryAchievementByAwardedEndTimeReq batchQueryAchievementByAwardedEndTimeReq = new BatchQueryAchievementByAwardedEndTimeReq();
        if (reqDto != null) {
            batchQueryAchievementByAwardedEndTimeReq.setAchievementList(reqDto.getAchievementList());//list-field-assign//sourceId:1695886_1
            batchQueryAchievementByAwardedEndTimeReq.setAchievementTypeId(reqDto.getAchievementTypeId());//SimpleFieldAssign//sourceId:1695910_1
            batchQueryAchievementByAwardedEndTimeReq.setAchievementCategoryId(reqDto.getAchievementCategoryId());//SimpleFieldAssign//sourceId:1695911_1
            batchQueryAchievementByAwardedEndTimeReq.setAchievementGradeId(reqDto.getAchievementGradeId());//SimpleFieldAssign//sourceId:1695912_1
            batchQueryAchievementByAwardedEndTimeReq.setCopyrightObjectTypeCode(reqDto.getCopyrightObjectTypeCode());//SimpleFieldAssign//sourceId:1695913_1
            batchQueryAchievementByAwardedEndTimeReq.setIsUseConversion(reqDto.getIsUseConversion());//SimpleFieldAssign//sourceId:1695914_1
            batchQueryAchievementByAwardedEndTimeReq.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1695915_1
            batchQueryAchievementByAwardedEndTimeReq.setAchievementDesc(reqDto.getAchievementDesc());//SimpleFieldAssign//sourceId:1695916_1
            batchQueryAchievementByAwardedEndTimeReq.setAwardedUnit(reqDto.getAwardedUnit());//SimpleFieldAssign//sourceId:1695917_1
            batchQueryAchievementByAwardedEndTimeReq.setAwardedTime(reqDto.getAwardedTime());//SimpleFieldAssign//sourceId:1695918_1
            batchQueryAchievementByAwardedEndTimeReq.setValidEndTime(reqDto.getValidEndTime());//SimpleFieldAssign//sourceId:1695919_1
            batchQueryAchievementByAwardedEndTimeReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1695920_1
            batchQueryAchievementByAwardedEndTimeReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1695921_1
        }

        /*3-10-01批量查询成果By授予及有效时间[9260]   */
        Assert.isNull(batchQueryAchievementByAwardedEndTimeReq.getSpaceId(), "D3批量查询成果By授予及有效时间(公共)-3-10-01批量查询成果By授予及有效时间-创建于空间ID不能为空", false);
        listOmsAchievement = mOmsAchievementService.batchQueryAchievementByAwardedEndTime(batchQueryAchievementByAwardedEndTimeReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsAchievement_1 = listOmsAchievement;

        BatchQueryAchievementByAwardedEndTimeComRespDto retData = new BatchQueryAchievementByAwardedEndTimeComRespDto();
        retData.setAchievementList(listOmsAchievement_1.stream().map(item -> BeanUtil.toBean(item, AchievementDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1695936_1


        return retData;
    }

    /**
     * D3统计成果数(公共)[9276]
     * gen by moon at 9/26/2024, 6:41:39 PM
     */
    @Trace(operationName = "D3统计成果数(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public StatisticsAchievementNumComRespDto statisticsAchievementNumCom(StatisticsAchievementNumComReqDto reqDto) {


        QueryAchievementDockingListComRespDto queryAchievementDockingListComRespDto_1 = null;
        CalculateContentAmountComRespDto calculateContentAmountComRespDto_1 = null;
//virtualUsage D3查询对接成果关系列表(公共)  66086
        QueryAchievementDockingListComRespDto queryAchievementDockingListComRespDto = null;
        QueryAchievementDockingListComReqDto queryAchievementDockingListComReqDto = new QueryAchievementDockingListComReqDto();
        if (reqDto != null) {
            queryAchievementDockingListComReqDto.setAchievementTypeId(reqDto.getAchievementTypeId());//SimpleFieldAssign//sourceId:1704759_1_66086
            queryAchievementDockingListComReqDto.setAchievementGradeId(reqDto.getAchievementGradeId());//SimpleFieldAssign//sourceId:1704760_1_66086
            queryAchievementDockingListComReqDto.setAchievementBelongBodyId(reqDto.getAchievementBelongBodyId());//SimpleFieldAssign//sourceId:1696738_1_66086
            queryAchievementDockingListComReqDto.setRootTargetCategoryId(reqDto.getRootTargetCategoryId());//SimpleFieldAssign//sourceId:1696493_1_66086
            queryAchievementDockingListComReqDto.setRootObjectiveId(reqDto.getRootObjectiveId());//SimpleFieldAssign//sourceId:1696505_1_66086
            queryAchievementDockingListComReqDto.setTargetCycleContentCode(reqDto.getTargetCycleContentCode());//SimpleFieldAssign//sourceId:1696689_1_66086
            queryAchievementDockingListComReqDto.setCycleStageDataId(reqDto.getCycleStageDataId());//SimpleFieldAssign//sourceId:1704427_1_66086
            queryAchievementDockingListComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1696492_1_66086
            queryAchievementDockingListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1696494_1_66086
            queryAchievementDockingListComReqDto.setIsSymbolicAchievement(reqDto.getIsSymbolicAchievement());//SimpleFieldAssign//sourceId:1696504_1_66086
            queryAchievementDockingListComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1696495_1_66086
            queryAchievementDockingListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1696496_1_66086
        }

        /*D3查询对接成果关系列表(公共)[9146]   */
        Assert.isNull(queryAchievementDockingListComReqDto.getSubjectLifeCycle(), "D3统计成果数(公共)-D3查询对接成果关系列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryAchievementDockingListComReqDto.getSpaceId(), "D3统计成果数(公共)-D3查询对接成果关系列表(公共)-创建于空间ID不能为空", false);
        queryAchievementDockingListComRespDto = achievementService.queryAchievementDockingListCom(queryAchievementDockingListComReqDto)/*vcase invoke isSameApp*/;


        queryAchievementDockingListComRespDto_1 = queryAchievementDockingListComRespDto;
//virtualUsage D2统计成果数  73031
        CalculateContentAmountComRespDto calculateContentAmountComRespDto = null;
        if (queryAchievementDockingListComRespDto != null) {
            CalculateContentAmountComReqDto calculateContentAmountComReqDto = new CalculateContentAmountComReqDto();
            if (queryAchievementDockingListComRespDto != null && queryAchievementDockingListComRespDto.getAchievementDockingList() != null && !CollectionUtil.isEmpty(queryAchievementDockingListComRespDto.getAchievementDockingList())) {
                calculateContentAmountComReqDto.setContentAmountList(queryAchievementDockingListComRespDto.getAchievementDockingList().stream().map(item -> item.getAchievementId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1696723_1_73031
            }

            /*D2统计成果数[3386]   */

            calculateContentAmountComRespDto = fwCompStatisticalDataClient.calculateContentAmountCom(calculateContentAmountComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            calculateContentAmountComRespDto_1 = calculateContentAmountComRespDto;
        }
        StatisticsAchievementNumComRespDto retData = new StatisticsAchievementNumComRespDto();
        if (calculateContentAmountComRespDto_1 != null) {
            retData.setCalcCount(calculateContentAmountComRespDto_1.getCalcCount());//SimpleFieldAssign//sourceId:1696725_1
        }
        if (queryAchievementDockingListComRespDto_1 != null) {
            retData.setAchievementDockingList(queryAchievementDockingListComRespDto_1.getAchievementDockingList().stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1697229_1
        }


        return retData;
    }

    /**
     * D3按成果类型或成果等级查询成果数列表(去重)[9278]
     * gen by moon at 4/6/2024, 11:18:12 AM
     */
    @Trace(operationName = "D3按成果类型或成果等级查询成果数列表(去重)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryAchievementByTypeOrGraceListComRespDto queryAchievementByTypeOrGraceListCom(QueryAchievementByTypeOrGraceListComReqDto reqDto) {


        ImplementDataSetDuplicateRemovalComRespDto implementDataSetDuplicateRemovalComRespDto_1 = null;
        if ((reqDto != null && reqDto.getAchievementStatisticsType() != null && reqDto.getAchievementStatisticsType().equals("STATISTICS_BY_ACHIEVEMENT_TYPE") && reqDto != null && reqDto.getAchievementDockingList() != null && reqDto.getAchievementDockingList().size() > 0)) {
            //if((D3按成果类型或成果等级查询成果数列表(去重).成果统计类型 等于 按成果类型统计 and D3按成果类型或成果等级查询成果数列表(去重).对接成果关系列表数据集条数 大于 0))  66107

            ImplementDataSetDuplicateRemovalComRespDto implementDataSetDuplicateRemovalComRespDto = null;
            ImplementDataSetDuplicateRemovalComReqDto implementDataSetDuplicateRemovalComReqDto = new ImplementDataSetDuplicateRemovalComReqDto();
            if (reqDto != null && reqDto.getAchievementDockingList() != null && !CollectionUtil.isEmpty(reqDto.getAchievementDockingList())) {
                implementDataSetDuplicateRemovalComReqDto.setDataSetDuplicateRemovalList(reqDto.getAchievementDockingList().stream().map(item -> item.getAchievementTypeId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1697001_1_66115
            }

            /*D2执行数据集记录去重(公共)[5138]   */

            implementDataSetDuplicateRemovalComRespDto = interfaceModeService.implementDataSetDuplicateRemovalCom(implementDataSetDuplicateRemovalComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            implementDataSetDuplicateRemovalComRespDto_1 = implementDataSetDuplicateRemovalComRespDto;
        } else if ((reqDto != null && reqDto.getAchievementStatisticsType() != null && reqDto.getAchievementStatisticsType().equals("STATISTICS_BY_ACHIEVEMENT_GRACE") && reqDto != null && reqDto.getAchievementDockingList() != null && reqDto.getAchievementDockingList().size() > 0)) {
            //elseif((D3按成果类型或成果等级查询成果数列表(去重).成果统计类型 等于 按成果等级统计 and D3按成果类型或成果等级查询成果数列表(去重).对接成果关系列表数据集条数 大于 0))  66108

            ImplementDataSetDuplicateRemovalComRespDto implementDataSetDuplicateRemovalComRespDto_2 = null;
            ImplementDataSetDuplicateRemovalComReqDto implementDataSetDuplicateRemovalComReqDto_1 = new ImplementDataSetDuplicateRemovalComReqDto();
            if (reqDto != null && reqDto.getAchievementDockingList() != null && !CollectionUtil.isEmpty(reqDto.getAchievementDockingList())) {
                implementDataSetDuplicateRemovalComReqDto_1.setDataSetDuplicateRemovalList(reqDto.getAchievementDockingList().stream().map(item -> item.getAchievementGradeId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1697001_1_66116
            }

            /*D2执行数据集记录去重(公共)[5138]   */

            implementDataSetDuplicateRemovalComRespDto_2 = interfaceModeService.implementDataSetDuplicateRemovalCom(implementDataSetDuplicateRemovalComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


            implementDataSetDuplicateRemovalComRespDto_1 = implementDataSetDuplicateRemovalComRespDto_2;
        }
        QueryAchievementByTypeOrGraceListComRespDto retData = new QueryAchievementByTypeOrGraceListComRespDto();
        if (implementDataSetDuplicateRemovalComRespDto_1 != null) {
            retData.setDataSetDuplicateRemovalList(implementDataSetDuplicateRemovalComRespDto_1.getDataSetDuplicateRemovalList());//list-field-assign//sourceId:1699780_1
        }


        return retData;
    }

    /**
     * D3批量查询对接成果列表By子周期周期ID(公共)[9282]
     * gen by moon at 4/7/2024, 9:04:22 AM
     */
    @Trace(operationName = "D3批量查询对接成果列表By子周期周期ID(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryDockAchievementListBySubCycleComRespDto batchQueryDockAchievementListBySubCycleCom(BatchQueryDockAchievementListBySubCycleComReqDto reqDto) {


        List<OmsAchievementDocking> listOmsAchievementDocking_1 = new ArrayList<>();
//步骤0: 3-10-08批量查询对接成果列表By子周期ID - batchQueryDockAchievementListBySubCycle
        List<OmsAchievementDocking> listOmsAchievementDocking = new ArrayList<>();
        BatchQueryDockAchievementListBySubCycleReq batchQueryDockAchievementListBySubCycleReq = new BatchQueryDockAchievementListBySubCycleReq();
        batchQueryDockAchievementListBySubCycleReq.setIsValid("FALSE");//sourceId:1697501_1
        if (reqDto != null) {
            batchQueryDockAchievementListBySubCycleReq.setEvaObjTargetCycleList(reqDto.getEvaObjTargetCycleList());//list-field-assign//sourceId:1697493_1
            batchQueryDockAchievementListBySubCycleReq.setAchievementTypeId(reqDto.getAchievementTypeId());//SimpleFieldAssign//sourceId:1706136_1
            batchQueryDockAchievementListBySubCycleReq.setAchievementGradeId(reqDto.getAchievementGradeId());//SimpleFieldAssign//sourceId:1706137_1
            batchQueryDockAchievementListBySubCycleReq.setIsSymbolicAchievement(reqDto.getIsSymbolicAchievement());//SimpleFieldAssign//sourceId:1697494_1
            batchQueryDockAchievementListBySubCycleReq.setRootObjectiveId(reqDto.getRootObjectiveId());//SimpleFieldAssign//sourceId:1697495_1
            batchQueryDockAchievementListBySubCycleReq.setTargetCycleContentCode(reqDto.getTargetCycleContentCode());//SimpleFieldAssign//sourceId:1697733_1
            batchQueryDockAchievementListBySubCycleReq.setRootTargetCategoryId(reqDto.getRootTargetCategoryId());//SimpleFieldAssign//sourceId:1697496_1
            batchQueryDockAchievementListBySubCycleReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1697497_1
            batchQueryDockAchievementListBySubCycleReq.setAchievementBelongBodyId(reqDto.getAchievementBelongBodyId());//SimpleFieldAssign//sourceId:1697498_1
            batchQueryDockAchievementListBySubCycleReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1697499_1
            batchQueryDockAchievementListBySubCycleReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1697500_1
            batchQueryDockAchievementListBySubCycleReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1697502_1
        }

        /*3-10-08批量查询对接成果列表By子周期ID[9281]   */
        Assert.isNull(batchQueryDockAchievementListBySubCycleReq.getIsValid(), "D3批量查询对接成果列表By子周期周期ID(公共)-3-10-08批量查询对接成果列表By子周期ID-是否作废不能为空", false);
        listOmsAchievementDocking = mOmsAchievementDockingService.batchQueryDockAchievementListBySubCycle(batchQueryDockAchievementListBySubCycleReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsAchievementDocking_1 = listOmsAchievementDocking;

        BatchQueryDockAchievementListBySubCycleComRespDto retData = new BatchQueryDockAchievementListBySubCycleComRespDto();
        retData.setAchievementDockingList(listOmsAchievementDocking_1.stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1697518_1


        return retData;
    }

    /**
     * D3批量统计成果数(公共)[9283]
     * gen by moon at 9/26/2024, 6:41:41 PM
     */
    @Trace(operationName = "D3批量统计成果数(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchStatisticsAchievementNumComRespDto batchStatisticsAchievementNumCom(BatchStatisticsAchievementNumComReqDto reqDto) {


        BatchQueryDockAchievementListBySubCycleComRespDto batchQueryDockAchievementListBySubCycleComRespDto_1 = null;
        CalculateContentAmountComRespDto calculateContentAmountComRespDto_1 = null;
//virtualUsage D3批量查询对接成果列表By子周期周期ID(公共)  66138
        BatchQueryDockAchievementListBySubCycleComRespDto batchQueryDockAchievementListBySubCycleComRespDto = null;
        BatchQueryDockAchievementListBySubCycleComReqDto batchQueryDockAchievementListBySubCycleComReqDto = new BatchQueryDockAchievementListBySubCycleComReqDto();
        if (reqDto != null) {
            batchQueryDockAchievementListBySubCycleComReqDto.setEvaObjTargetCycleList(reqDto.getEvaObjTargetCycleList());//list-field-assign//sourceId:1697685_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setAchievementTypeId(reqDto.getAchievementTypeId());//SimpleFieldAssign//sourceId:1706140_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setAchievementGradeId(reqDto.getAchievementGradeId());//SimpleFieldAssign//sourceId:1706141_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setIsSymbolicAchievement(reqDto.getIsSymbolicAchievement());//SimpleFieldAssign//sourceId:1697686_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setTargetCycleContentCode(reqDto.getTargetCycleContentCode());//SimpleFieldAssign//sourceId:1697735_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setRootObjectiveId(reqDto.getRootObjectiveId());//SimpleFieldAssign//sourceId:1697687_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setRootTargetCategoryId(reqDto.getRootTargetCategoryId());//SimpleFieldAssign//sourceId:1697688_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1697689_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setAchievementBelongBodyId(reqDto.getAchievementBelongBodyId());//SimpleFieldAssign//sourceId:1697690_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1697692_1_66138
            batchQueryDockAchievementListBySubCycleComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1697693_1_66138
        }

        /*D3批量查询对接成果列表By子周期周期ID(公共)[9282]   */

        batchQueryDockAchievementListBySubCycleComRespDto = batchQueryDockAchievementListBySubCycleCom(batchQueryDockAchievementListBySubCycleComReqDto)/*vcase invoke 同服务,同domain*/;


        batchQueryDockAchievementListBySubCycleComRespDto_1 = batchQueryDockAchievementListBySubCycleComRespDto;
//virtualUsage D2批量统计成果数  73032
        CalculateContentAmountComRespDto calculateContentAmountComRespDto = null;
        if (batchQueryDockAchievementListBySubCycleComRespDto != null) {
            CalculateContentAmountComReqDto calculateContentAmountComReqDto = new CalculateContentAmountComReqDto();
            if (batchQueryDockAchievementListBySubCycleComRespDto != null && batchQueryDockAchievementListBySubCycleComRespDto.getAchievementDockingList() != null && !CollectionUtil.isEmpty(batchQueryDockAchievementListBySubCycleComRespDto.getAchievementDockingList())) {
                calculateContentAmountComReqDto.setContentAmountList(batchQueryDockAchievementListBySubCycleComRespDto.getAchievementDockingList().stream().map(item -> item.getAchievementId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1697695_1_73032
            }

            /*D2批量统计成果数[3386]   */

            calculateContentAmountComRespDto = fwCompStatisticalDataClient.calculateContentAmountCom(calculateContentAmountComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            calculateContentAmountComRespDto_1 = calculateContentAmountComRespDto;
        }
        BatchStatisticsAchievementNumComRespDto retData = new BatchStatisticsAchievementNumComRespDto();
        if (calculateContentAmountComRespDto_1 != null) {
            retData.setCalcCount(calculateContentAmountComRespDto_1.getCalcCount());//SimpleFieldAssign//sourceId:1697720_1
        }
        if (batchQueryDockAchievementListBySubCycleComRespDto_1 != null) {
            retData.setAchievementDockingList(batchQueryDockAchievementListBySubCycleComRespDto_1.getAchievementDockingList().stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1697719_1
        }


        return retData;
    }

    /**
     * D3批量统计成果数By所属主体(公共)[9305]
     * gen by moon at 9/26/2024, 6:41:43 PM
     */
    @Trace(operationName = "D3批量统计成果数By所属主体(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchStatisticsAchievementNumByBelongBodyComRespDto batchStatisticsAchievementNumByBelongBodyCom(BatchStatisticsAchievementNumByBelongBodyComReqDto reqDto) {


        BatchQueryAchievementDockByBelongBodyComRespDto batchQueryAchievementDockByBelongBodyComRespDto_1 = null;
        CalculateContentAmountComRespDto calculateContentAmountComRespDto_1 = null;
//virtualUsage D3批量查询对接成果关系By所属主体(公共)  66218
        BatchQueryAchievementDockByBelongBodyComRespDto batchQueryAchievementDockByBelongBodyComRespDto = null;
        BatchQueryAchievementDockByBelongBodyComReqDto batchQueryAchievementDockByBelongBodyComReqDto = new BatchQueryAchievementDockByBelongBodyComReqDto();
        if (reqDto != null) {
            batchQueryAchievementDockByBelongBodyComReqDto.setAchievementDockingList(reqDto.getAchievementDockingList());//list-field-assign//sourceId:1702166_1_66218
            batchQueryAchievementDockByBelongBodyComReqDto.setAchievementTypeId(reqDto.getAchievementTypeId());//SimpleFieldAssign//sourceId:1706366_1_66218
            batchQueryAchievementDockByBelongBodyComReqDto.setIsSymbolicAchievement(reqDto.getIsSymbolicAchievement());//SimpleFieldAssign//sourceId:1702167_1_66218
            batchQueryAchievementDockByBelongBodyComReqDto.setTargetCycleContentCode(reqDto.getTargetCycleContentCode());//SimpleFieldAssign//sourceId:1702168_1_66218
            batchQueryAchievementDockByBelongBodyComReqDto.setRootObjectiveId(reqDto.getRootObjectiveId());//SimpleFieldAssign//sourceId:1702169_1_66218
            batchQueryAchievementDockByBelongBodyComReqDto.setRootTargetCategoryId(reqDto.getRootTargetCategoryId());//SimpleFieldAssign//sourceId:1702170_1_66218
            batchQueryAchievementDockByBelongBodyComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1702171_1_66218
            batchQueryAchievementDockByBelongBodyComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1702172_1_66218
            batchQueryAchievementDockByBelongBodyComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1702173_1_66218
        }

        /*D3批量查询对接成果关系By所属主体(公共)[9306]   */

        batchQueryAchievementDockByBelongBodyComRespDto = batchQueryAchievementDockByBelongBodyCom(batchQueryAchievementDockByBelongBodyComReqDto)/*vcase invoke 同服务,同domain*/;


        batchQueryAchievementDockByBelongBodyComRespDto_1 = batchQueryAchievementDockByBelongBodyComRespDto;
//virtualUsage D2统计数据集内容条数服务(公共)  73033
        CalculateContentAmountComRespDto calculateContentAmountComRespDto = null;
        if (batchQueryAchievementDockByBelongBodyComRespDto != null) {
            CalculateContentAmountComReqDto calculateContentAmountComReqDto = new CalculateContentAmountComReqDto();
            if (batchQueryAchievementDockByBelongBodyComRespDto != null && batchQueryAchievementDockByBelongBodyComRespDto.getAchievementDockingList() != null && !CollectionUtil.isEmpty(batchQueryAchievementDockByBelongBodyComRespDto.getAchievementDockingList())) {
                calculateContentAmountComReqDto.setContentAmountList(batchQueryAchievementDockByBelongBodyComRespDto.getAchievementDockingList().stream().map(item -> item.getAchievementId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1702193_1_73033
            }

            /*D2统计数据集内容条数服务(公共)[3386]   */

            calculateContentAmountComRespDto = fwCompStatisticalDataClient.calculateContentAmountCom(calculateContentAmountComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            calculateContentAmountComRespDto_1 = calculateContentAmountComRespDto;
        }
        BatchStatisticsAchievementNumByBelongBodyComRespDto retData = new BatchStatisticsAchievementNumByBelongBodyComRespDto();
        if (calculateContentAmountComRespDto_1 != null) {
            retData.setCalcCount(calculateContentAmountComRespDto_1.getCalcCount());//SimpleFieldAssign//sourceId:1702226_1
        }
        if (batchQueryAchievementDockByBelongBodyComRespDto_1 != null) {
            retData.setAchievementDockingList(batchQueryAchievementDockByBelongBodyComRespDto_1.getAchievementDockingList().stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1702225_1
        }


        return retData;
    }

    /**
     * D3批量查询对接成果关系By所属主体(公共)[9306]
     * gen by moon at 4/7/2024, 9:04:53 AM
     */
    @Trace(operationName = "D3批量查询对接成果关系By所属主体(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryAchievementDockByBelongBodyComRespDto batchQueryAchievementDockByBelongBodyCom(BatchQueryAchievementDockByBelongBodyComReqDto reqDto) {


        List<OmsAchievementDocking> listOmsAchievementDocking_1 = new ArrayList<>();
//步骤0: 3-10-08批量查询对接成果关系By所属主体 - batchQueryAchievementDockByBelongBody
        List<OmsAchievementDocking> listOmsAchievementDocking = new ArrayList<>();
        BatchQueryAchievementDockByBelongBodyReq batchQueryAchievementDockByBelongBodyReq = new BatchQueryAchievementDockByBelongBodyReq();
        if (reqDto != null) {
            batchQueryAchievementDockByBelongBodyReq.setAchievementDockingList(reqDto.getAchievementDockingList());//list-field-assign//sourceId:1702132_1
            batchQueryAchievementDockByBelongBodyReq.setAchievementTypeId(reqDto.getAchievementTypeId());//SimpleFieldAssign//sourceId:1706364_1
            batchQueryAchievementDockByBelongBodyReq.setIsSymbolicAchievement(reqDto.getIsSymbolicAchievement());//SimpleFieldAssign//sourceId:1702133_1
            batchQueryAchievementDockByBelongBodyReq.setTargetCycleContentCode(reqDto.getTargetCycleContentCode());//SimpleFieldAssign//sourceId:1702134_1
            batchQueryAchievementDockByBelongBodyReq.setRootObjectiveId(reqDto.getRootObjectiveId());//SimpleFieldAssign//sourceId:1702135_1
            batchQueryAchievementDockByBelongBodyReq.setRootTargetCategoryId(reqDto.getRootTargetCategoryId());//SimpleFieldAssign//sourceId:1702136_1
            batchQueryAchievementDockByBelongBodyReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1702137_1
            batchQueryAchievementDockByBelongBodyReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1702138_1
            batchQueryAchievementDockByBelongBodyReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1702139_1
        }

        /*3-10-08批量查询对接成果关系By所属主体[9307]   */

        listOmsAchievementDocking = mOmsAchievementDockingService.batchQueryAchievementDockByBelongBody(batchQueryAchievementDockByBelongBodyReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsAchievementDocking_1 = listOmsAchievementDocking;

        BatchQueryAchievementDockByBelongBodyComRespDto retData = new BatchQueryAchievementDockByBelongBodyComRespDto();
        retData.setAchievementDockingList(listOmsAchievementDocking_1.stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1702149_1


        return retData;
    }

    /**
     * D3批量查询对接成果关系By评价画像根节点(公共)[9641]
     * gen by moon at 5/23/2024, 3:04:17 AM
     */
    @Trace(operationName = "D3批量查询对接成果关系By评价画像根节点(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryAchDockByEvaPortraitSubRootComRespDto batchQueryAchDockByEvaPortraitSubRootCom(BatchQueryAchDockByEvaPortraitSubRootComReqDto reqDto) {


        List<OmsAchievementDocking> listOmsAchievementDocking_1 = new ArrayList<>();
//步骤0: 3-10-08批量查询对接成果关系By评价画像根节点 - batchQueryAchDockByEvaPortraitSubRoot
        List<OmsAchievementDocking> listOmsAchievementDocking = new ArrayList<>();
        BatchQueryAchDockByEvaPortraitSubRootReq batchQueryAchDockByEvaPortraitSubRootReq = new BatchQueryAchDockByEvaPortraitSubRootReq();
        if (reqDto != null) {
            batchQueryAchDockByEvaPortraitSubRootReq.setAchievementDockingList(reqDto.getAchievementDockingList());//list-field-assign//sourceId:1814099_1
            batchQueryAchDockByEvaPortraitSubRootReq.setAchievementTypeId(reqDto.getAchievementTypeId());//SimpleFieldAssign//sourceId:1814100_1
            batchQueryAchDockByEvaPortraitSubRootReq.setIsSymbolicAchievement(reqDto.getIsSymbolicAchievement());//SimpleFieldAssign//sourceId:1814101_1
            batchQueryAchDockByEvaPortraitSubRootReq.setTargetCycleContentCode(reqDto.getTargetCycleContentCode());//SimpleFieldAssign//sourceId:1814102_1
            batchQueryAchDockByEvaPortraitSubRootReq.setRootObjectiveId(reqDto.getRootObjectiveId());//SimpleFieldAssign//sourceId:1814103_1
            batchQueryAchDockByEvaPortraitSubRootReq.setRootTargetCategoryId(reqDto.getRootTargetCategoryId());//SimpleFieldAssign//sourceId:1814104_1
            batchQueryAchDockByEvaPortraitSubRootReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1814105_1
            batchQueryAchDockByEvaPortraitSubRootReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1814106_1
            batchQueryAchDockByEvaPortraitSubRootReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1814107_1
        }

        /*3-10-08批量查询对接成果关系By评价画像根节点[9652]   */

        listOmsAchievementDocking = mOmsAchievementDockingService.batchQueryAchDockByEvaPortraitSubRoot(batchQueryAchDockByEvaPortraitSubRootReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsAchievementDocking_1 = listOmsAchievementDocking;

        BatchQueryAchDockByEvaPortraitSubRootComRespDto retData = new BatchQueryAchDockByEvaPortraitSubRootComRespDto();
        retData.setAchievementDockingList(listOmsAchievementDocking_1.stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1814118_1


        return retData;
    }

    /**
     * D3分析评价画像根节点ID(公共)[9651]
     * gen by moon at 5/23/2024, 3:04:34 AM
     */
    @Trace(operationName = "D3分析评价画像根节点ID(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AnalysisEvaPortraitRootIdComRespDto analysisEvaPortraitRootIdCom(AnalysisEvaPortraitRootIdComReqDto reqDto) {


        ImplementEightReceivingFieldRespDto receptionServiceRes_1 = null;
        if ((reqDto != null && reqDto.getEvaluationTemplateTypeCode() != null && reqDto.getEvaluationTemplateTypeCode().equals("PLAN_KPI") || reqDto != null && reqDto.getEvaluationTemplateTypeCode() != null && reqDto.getEvaluationTemplateTypeCode().equals("INDEX") || reqDto != null && reqDto.getEvaluationTemplateTypeCode() != null && reqDto.getEvaluationTemplateTypeCode().equals("SELECTION"))) {
            //if((D3分析评价画像根节点ID(公共).冗余评价模板类型配置项 等于 规划绩效 or D3分析评价画像根节点ID(公共).冗余评价模板类型配置项 等于 指数 or D3分析评价画像根节点ID(公共).冗余评价模板类型配置项 等于 评选))  68881

            QueryTargetContetCycleDetailComRespDto queryTargetContetCycleDetailComRespDto = null;
            QueryTargetContetCycleDetailComReqDto queryTargetContetCycleDetailComReqDto = new QueryTargetContetCycleDetailComReqDto();
            queryTargetContetCycleDetailComReqDto.setEvaObjTypeCode("EVA_PORTRAIT");//sourceId:1814015_1_68882
            queryTargetContetCycleDetailComReqDto.setTargetCycleContentTypeCode("TARGET");//sourceId:1814016_1_68882
            queryTargetContetCycleDetailComReqDto.setIsSubCycle("TRUE");//sourceId:1814027_1_68882
            queryTargetContetCycleDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1814018_1_68882
            if (reqDto != null) {
                queryTargetContetCycleDetailComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1814034_1_68882
                queryTargetContetCycleDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1814028_1_68882
                queryTargetContetCycleDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1814019_1_68882
            }

            /*D3查评价画像对应的子周期目标周期ID[9284]   */
            Assert.isNull(queryTargetContetCycleDetailComReqDto.getEvaObjTypeCode(), "D3分析评价画像根节点ID(公共)-D3查评价画像对应的子周期目标周期ID-被评对象类型编码不能为空", false);
            Assert.isNull(queryTargetContetCycleDetailComReqDto.getTargetCycleContentTypeCode(), "D3分析评价画像根节点ID(公共)-D3查评价画像对应的子周期目标周期ID-关联目标内容类型编码不能为空", false);
            Assert.isNull(queryTargetContetCycleDetailComReqDto.getCycleId(), "D3分析评价画像根节点ID(公共)-D3查评价画像对应的子周期目标周期ID-周期ID不能为空", false);
            Assert.isNull(queryTargetContetCycleDetailComReqDto.getIsSubCycle(), "D3分析评价画像根节点ID(公共)-D3查评价画像对应的子周期目标周期ID-是否子周期不能为空", false);
            Assert.isNull(queryTargetContetCycleDetailComReqDto.getEvaluationTemplateId(), "D3分析评价画像根节点ID(公共)-D3查评价画像对应的子周期目标周期ID-冗余评价模板ID不能为空", false);
            Assert.isNull(queryTargetContetCycleDetailComReqDto.getSubjectLifeCycle(), "D3分析评价画像根节点ID(公共)-D3查评价画像对应的子周期目标周期ID-主体生命周期不能为空", false);
            Assert.isNull(queryTargetContetCycleDetailComReqDto.getSpaceId(), "D3分析评价画像根节点ID(公共)-D3查评价画像对应的子周期目标周期ID-创建于空间ID不能为空", false);
            queryTargetContetCycleDetailComRespDto = targetCalcService.queryTargetContetCycleDetailCom(queryTargetContetCycleDetailComReqDto)/*vcase invoke isSameApp*/;
            Assert.isTrue(queryTargetContetCycleDetailComRespDto == null || queryTargetContetCycleDetailComRespDto.getEvaObjTargetCycleId() == null, "找不到数据，系统异常", false);


//ModelCode: receptionService
            ImplementEightReceivingFieldRespDto receptionServiceRes = null;
            if (queryTargetContetCycleDetailComRespDto != null) {
                ImplementEightReceivingFieldReqDto receptionServiceReq = new ImplementEightReceivingFieldReqDto();
                if (queryTargetContetCycleDetailComRespDto != null) {
                    receptionServiceReq.setEvaPortraitTargetSubCycleId(queryTargetContetCycleDetailComRespDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1814052_1_68883
                }

                /*M3接收归属评价画像子周期根节点ID出参[8691]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq.getEvaPortraitTargetSubCycleId(), "D3分析评价画像根节点ID(公共)-M3接收归属评价画像子周期根节点ID出参-归属评价画像子周期根节点ID不能为空", false);
                receptionServiceRes = nbAchievementDock.implementEightReceivingField(receptionServiceReq);


                receptionServiceRes_1 = receptionServiceRes;
            }
        }
        AnalysisEvaPortraitRootIdComRespDto retData = new AnalysisEvaPortraitRootIdComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setEvaPortraitTargetSubCycleId(receptionServiceRes_1.getEvaPortraitTargetSubCycleId());//SimpleFieldAssign//sourceId:1814056_1
        }


        return retData;
    }

    /**
     * D3批量统计成果数By评价画像根节点(公共)[9653]
     * gen by moon at 9/26/2024, 6:41:45 PM
     */
    @Trace(operationName = "D3批量统计成果数By评价画像根节点(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchStatisticsAchNumByEvaPortraitSubRootComRespDto batchStatisticsAchNumByEvaPortraitSubRootCom(BatchStatisticsAchNumByEvaPortraitSubRootComReqDto reqDto) {


        BatchQueryAchDockByEvaPortraitSubRootComRespDto batchQueryAchDockByEvaPortraitSubRootComRespDto_1 = null;
        CalculateContentAmountComRespDto calculateContentAmountComRespDto_1 = null;
//virtualUsage D3批量查询对接成果关系By评价画像根节点(公共)  68889
        BatchQueryAchDockByEvaPortraitSubRootComRespDto batchQueryAchDockByEvaPortraitSubRootComRespDto = null;
        BatchQueryAchDockByEvaPortraitSubRootComReqDto batchQueryAchDockByEvaPortraitSubRootComReqDto = new BatchQueryAchDockByEvaPortraitSubRootComReqDto();
        if (reqDto != null) {
            batchQueryAchDockByEvaPortraitSubRootComReqDto.setAchievementDockingList(reqDto.getAchievementDockingList());//list-field-assign//sourceId:1814119_1_68889
            batchQueryAchDockByEvaPortraitSubRootComReqDto.setAchievementTypeId(reqDto.getAchievementTypeId());//SimpleFieldAssign//sourceId:1814120_1_68889
            batchQueryAchDockByEvaPortraitSubRootComReqDto.setIsSymbolicAchievement(reqDto.getIsSymbolicAchievement());//SimpleFieldAssign//sourceId:1814121_1_68889
            batchQueryAchDockByEvaPortraitSubRootComReqDto.setTargetCycleContentCode(reqDto.getTargetCycleContentCode());//SimpleFieldAssign//sourceId:1814122_1_68889
            batchQueryAchDockByEvaPortraitSubRootComReqDto.setRootObjectiveId(reqDto.getRootObjectiveId());//SimpleFieldAssign//sourceId:1814123_1_68889
            batchQueryAchDockByEvaPortraitSubRootComReqDto.setRootTargetCategoryId(reqDto.getRootTargetCategoryId());//SimpleFieldAssign//sourceId:1814124_1_68889
            batchQueryAchDockByEvaPortraitSubRootComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1814125_1_68889
            batchQueryAchDockByEvaPortraitSubRootComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1814126_1_68889
            batchQueryAchDockByEvaPortraitSubRootComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1814127_1_68889
        }

        /*D3批量查询对接成果关系By评价画像根节点(公共)[9641]   */

        batchQueryAchDockByEvaPortraitSubRootComRespDto = batchQueryAchDockByEvaPortraitSubRootCom(batchQueryAchDockByEvaPortraitSubRootComReqDto)/*vcase invoke 同服务,同domain*/;


        batchQueryAchDockByEvaPortraitSubRootComRespDto_1 = batchQueryAchDockByEvaPortraitSubRootComRespDto;
//virtualUsage D2统计数据集内容条数服务(公共)  73034
        CalculateContentAmountComRespDto calculateContentAmountComRespDto = null;
        if (batchQueryAchDockByEvaPortraitSubRootComRespDto != null) {
            CalculateContentAmountComReqDto calculateContentAmountComReqDto = new CalculateContentAmountComReqDto();
            if (batchQueryAchDockByEvaPortraitSubRootComRespDto != null && batchQueryAchDockByEvaPortraitSubRootComRespDto.getAchievementDockingList() != null && !CollectionUtil.isEmpty(batchQueryAchDockByEvaPortraitSubRootComRespDto.getAchievementDockingList())) {
                calculateContentAmountComReqDto.setContentAmountList(batchQueryAchDockByEvaPortraitSubRootComRespDto.getAchievementDockingList().stream().map(item -> item.getAchievementId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1814129_1_73034
            }

            /*D2统计数据集内容条数服务(公共)[3386]   */

            calculateContentAmountComRespDto = fwCompStatisticalDataClient.calculateContentAmountCom(calculateContentAmountComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            calculateContentAmountComRespDto_1 = calculateContentAmountComRespDto;
        }
        BatchStatisticsAchNumByEvaPortraitSubRootComRespDto retData = new BatchStatisticsAchNumByEvaPortraitSubRootComRespDto();
        if (batchQueryAchDockByEvaPortraitSubRootComRespDto_1 != null) {
            retData.setAchievementDockingList(batchQueryAchDockByEvaPortraitSubRootComRespDto_1.getAchievementDockingList().stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1814140_1
        }
        if (calculateContentAmountComRespDto_1 != null) {
            retData.setCalcCount(calculateContentAmountComRespDto_1.getCalcCount());//SimpleFieldAssign//sourceId:1814141_1
        }


        return retData;
    }

    /**
     * D3分析成果所属主体及类型(公共)[9656]
     * gen by moon at 5/23/2024, 7:16:41 PM
     */
    @Trace(operationName = "D3分析成果所属主体及类型(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AnalysisAchBelongBodyAndTypeComRespDto analysisAchBelongBodyAndTypeCom(AnalysisAchBelongBodyAndTypeComReqDto reqDto) {


        ImplementEightReceivingFieldRespDto receptionServiceRes_3 = null;
//virtualUsage M3接收入参字段  68945
        //ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes = null;
        ImplementEightReceivingFieldReqDto receptionServiceReq = new ImplementEightReceivingFieldReqDto();
        receptionServiceReq.setCustomField1("DEPT_TARGET_ROOT");//CUSTOM_CONVENTION//sourceId:1815398_1_68945
        if (reqDto != null) {
            receptionServiceReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1815385_1_68945
            receptionServiceReq.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1815387_1_68945
            receptionServiceReq.setEvaObjTableTypeCode(reqDto.getEvaObjTableTypeCode());//SimpleFieldAssign//sourceId:1815420_1_68945
            receptionServiceReq.setEvaluationTemplateTypeCode(reqDto.getEvaluationTemplateTypeCode());//SimpleFieldAssign//sourceId:1815386_1_68945
        }

        /*M3接收入参字段[8691]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getEvaObjEntityId(), "D3分析成果所属主体及类型(公共)-M3接收入参字段-被评对象内容表主键ID不能为空", false);
        Assert.isNull(receptionServiceReq.getEvaObjTableTypeCode(), "D3分析成果所属主体及类型(公共)-M3接收入参字段-被评对象内容表类型编码不能为空", false);
        Assert.isNull(receptionServiceReq.getEvaluationTemplateTypeCode(), "D3分析成果所属主体及类型(公共)-M3接收入参字段-冗余评价模板类型配置项不能为空", false);
        Assert.isNull(receptionServiceReq.getCustomField1(), "D3分析成果所属主体及类型(公共)-M3接收入参字段-自定义字段1不能为空", false);
        receptionServiceRes = nbAchievementDock.implementEightReceivingField(receptionServiceReq);


        if ((reqDto != null && reqDto.getEvaluationTemplateTypeCode() != null && reqDto.getEvaluationTemplateTypeCode().equals("TARGET_PLAN") || reqDto != null && reqDto.getEvaluationTemplateTypeCode() != null && reqDto.getEvaluationTemplateTypeCode().equals("STATUS"))) {
            //if((D3分析成果所属主体及类型(公共).冗余评价模板类型配置项 等于 目标规划 or D3分析成果所属主体及类型(公共).冗余评价模板类型配置项 等于 状态))  68943

//ModelCode: receptionService
            ImplementEightReceivingFieldRespDto receptionServiceRes_2 = null;
            ImplementEightReceivingFieldReqDto receptionServiceReq_1 = new ImplementEightReceivingFieldReqDto();
            if (receptionServiceRes != null) {
                receptionServiceReq_1.setAchievementBelongBodyTypeCode(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1815394_1_68944
            }
            if (reqDto != null) {
                receptionServiceReq_1.setAchievementBelongBodyId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1815395_1_68944
            }

            /*M3接收成果所属主体类型编码出参[8691]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_1.getAchievementBelongBodyTypeCode(), "D3分析成果所属主体及类型(公共)-M3接收成果所属主体类型编码出参-成果所属主体类型编码不能为空", false);
            Assert.isNull(receptionServiceReq_1.getAchievementBelongBodyId(), "D3分析成果所属主体及类型(公共)-M3接收成果所属主体类型编码出参-成果所属主体ID不能为空", false);
            receptionServiceRes_2 = nbAchievementDock.implementEightReceivingField(receptionServiceReq_1);


            receptionServiceRes_3 = receptionServiceRes_2;
        } else if ((reqDto != null && reqDto.getEvaluationTemplateTypeCode() != null && reqDto.getEvaluationTemplateTypeCode().equals("PLAN_KPI") || reqDto != null && reqDto.getEvaluationTemplateTypeCode() != null && reqDto.getEvaluationTemplateTypeCode().equals("INDEX") || reqDto != null && reqDto.getEvaluationTemplateTypeCode() != null && reqDto.getEvaluationTemplateTypeCode().equals("SELECTION"))) {
            //elseif((D3分析成果所属主体及类型(公共).冗余评价模板类型配置项 等于 规划绩效 or D3分析成果所属主体及类型(公共).冗余评价模板类型配置项 等于 指数 or D3分析成果所属主体及类型(公共).冗余评价模板类型配置项 等于 评选))  68946

//ModelCode: receptionService
            ImplementEightReceivingFieldRespDto receptionServiceRes_4 = null;
            ImplementEightReceivingFieldReqDto receptionServiceReq_2 = new ImplementEightReceivingFieldReqDto();
            if (reqDto != null) {
                receptionServiceReq_2.setAchievementBelongBodyTypeCode(reqDto.getEvaObjTableTypeCode());//SimpleFieldAssign//sourceId:1815394_1_68947
                receptionServiceReq_2.setAchievementBelongBodyId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1815395_1_68947
            }

            /*M3接收成果所属主体类型编码出参[8691]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_2.getAchievementBelongBodyTypeCode(), "D3分析成果所属主体及类型(公共)-M3接收成果所属主体类型编码出参-成果所属主体类型编码不能为空", false);
            Assert.isNull(receptionServiceReq_2.getAchievementBelongBodyId(), "D3分析成果所属主体及类型(公共)-M3接收成果所属主体类型编码出参-成果所属主体ID不能为空", false);
            receptionServiceRes_4 = nbAchievementDock.implementEightReceivingField(receptionServiceReq_2);


            receptionServiceRes_3 = receptionServiceRes_4;
        }
        AnalysisAchBelongBodyAndTypeComRespDto retData = new AnalysisAchBelongBodyAndTypeComRespDto();
        if (receptionServiceRes_3 != null) {
            retData.setAchievementBelongBodyTypeCode(receptionServiceRes_3.getAchievementBelongBodyTypeCode());//SimpleFieldAssign//sourceId:1815422_1
            retData.setAchievementBelongBodyId(receptionServiceRes_3.getAchievementBelongBodyId());//SimpleFieldAssign//sourceId:1815423_1
        }


        return retData;
    }

    /**
     * D3查询成果对接目标汇报任务列表(公共)[9968]
     * gen by moon at 7/22/2024, 10:11:05 PM
     */
    @Trace(operationName = "D3查询成果对接目标汇报任务列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryAchiveDockTargetReportTaskListComRespDto queryAchiveDockTargetReportTaskListCom(QueryAchiveDockTargetReportTaskListComReqDto reqDto) {


        QueryAchievementDockingListComRespDto queryAchievementDockingListComRespDto_1 = null;
        List<OmsTask> listOmsTask_1 = new ArrayList<>();
        if ((reqDto != null && reqDto.getEvaluationTemplateId() != null)) {
            //if(D3查询成果对接目标汇报任务列表(公共).归属评价模板ID 值不等于空 )  71849

            QueryAchievementDockingListComRespDto queryAchievementDockingListComRespDto = null;
            QueryAchievementDockingListComReqDto queryAchievementDockingListComReqDto = new QueryAchievementDockingListComReqDto();
            if (reqDto != null) {
                queryAchievementDockingListComReqDto.setAchievementId(reqDto.getAchievementId());//SimpleFieldAssign//sourceId:1937678_1_71850
                queryAchievementDockingListComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1937679_1_71850
                queryAchievementDockingListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1937680_1_71850
                queryAchievementDockingListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1937681_1_71850
            }

            /*D3查询对接成果关系列表(公共)[9146]   */
            Assert.isNull(queryAchievementDockingListComReqDto.getAchievementId(), "D3查询成果对接目标汇报任务列表(公共)-D3查询对接成果关系列表(公共)-关联成果ID不能为空", false);
            Assert.isNull(queryAchievementDockingListComReqDto.getSpaceId(), "D3查询成果对接目标汇报任务列表(公共)-D3查询对接成果关系列表(公共)-创建于空间ID不能为空", false);
            queryAchievementDockingListComRespDto = achievementService.queryAchievementDockingListCom(queryAchievementDockingListComReqDto)/*vcase invoke isSameApp*/;


            queryAchievementDockingListComRespDto_1 = queryAchievementDockingListComRespDto;
            List<OmsTask> listOmsTask = new ArrayList<>();
            if (queryAchievementDockingListComRespDto != null) {
                BatchQueryReportingTaskReq batchQueryReportingTaskReq = new BatchQueryReportingTaskReq();
                batchQueryReportingTaskReq.setIsValid("FALSE");//sourceId:1937662_1_71851
                if (queryAchievementDockingListComRespDto != null && queryAchievementDockingListComRespDto.getAchievementDockingList() != null && !CollectionUtil.isEmpty(queryAchievementDockingListComRespDto.getAchievementDockingList())) {
                    batchQueryReportingTaskReq.setSameLevelEvaObjTargetCycleList(queryAchievementDockingListComRespDto.getAchievementDockingList().stream().map(item -> item.getCycleStageDataId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1937656_1_71851
                }
                if (reqDto != null) {
                    batchQueryReportingTaskReq.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1937666_1_71851
                    batchQueryReportingTaskReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1937663_1_71851
                }

                /*3-7-01批量查询汇报任务by内容表主键ID[3912]   */
                Assert.isNull(batchQueryReportingTaskReq.getThemeContentId(), "D3查询成果对接目标汇报任务列表(公共)-3-7-01批量查询汇报任务by内容表主键ID-主题内容ID不能为空", false);
                Assert.isNull(batchQueryReportingTaskReq.getIsValid(), "D3查询成果对接目标汇报任务列表(公共)-3-7-01批量查询汇报任务by内容表主键ID-是否作废不能为空", false);
                Assert.isNull(batchQueryReportingTaskReq.getSpaceId(), "D3查询成果对接目标汇报任务列表(公共)-3-7-01批量查询汇报任务by内容表主键ID-创建于空间ID不能为空", false);
                listOmsTask = mOmsTaskService.batchQueryReportingTask(batchQueryReportingTaskReq)/*vcase invoke 本地 method 方法调用;*/;


                listOmsTask_1 = listOmsTask;
            }
        }
        QueryAchiveDockTargetReportTaskListComRespDto retData = new QueryAchiveDockTargetReportTaskListComRespDto();
        //数据集融合  MoreListToOneSource
        if (queryAchievementDockingListComRespDto_1 != null && !CollectionUtil.isEmpty(queryAchievementDockingListComRespDto_1.getAchievementDockingList())) {
            for (AchievementDockingDto achievementDockingDto : queryAchievementDockingListComRespDto_1.getAchievementDockingList()) {
                AchievementDockingDto retElm = new AchievementDockingDto();
                if (queryAchievementDockingListComRespDto_1 != null) {
                    retElm.setTargetCycleContentId(achievementDockingDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:395151_2
                }
                retData.getAchievementDockingList().add(retElm);
                if (listOmsTask_1 != null && !CollectionUtil.isEmpty(listOmsTask_1)) {
                    for (OmsTask omsTask : listOmsTask_1) {
                        if (omsTask.getEntityId().equals(achievementDockingDto.getCycleStageDataId())) {
                            retElm.setTaskName(omsTask.getTaskName());//SimpleFieldAssign//sourceId:395146_2
                        }
                    }
                }

            }
        }//sourceId:1937711_1


        return retData;
    }

    /**
     * D3批量查询成果对接by创建人(公共)[9977]
     * gen by moon at 7/20/2024, 6:24:32 PM
     */
    @Trace(operationName = "D3批量查询成果对接by创建人(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryAchievementDockByCreateInductionIdComRespDto batchQueryAchievementDockByCreateInductionIdCom(BatchQueryAchievementDockByCreateInductionIdComReqDto reqDto) {


        List<OmsAchievementDocking> listOmsAchievementDocking_1 = new ArrayList<>();
        List<OmsAchievement> listOmsAchievement_1 = new ArrayList<>();
//步骤0: 3-10-08批量查询成果对接by创建人 - batchQueryAchievementDockByCreateInductionId
        List<OmsAchievementDocking> listOmsAchievementDocking = new ArrayList<>();
        BatchQueryAchievementDockByCreateInductionIdReq batchQueryAchievementDockByCreateInductionIdReq = new BatchQueryAchievementDockByCreateInductionIdReq();
        batchQueryAchievementDockByCreateInductionIdReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1939010_1
        if (reqDto != null) {
            batchQueryAchievementDockByCreateInductionIdReq.setAchievementDockingList(reqDto.getAchievementDockingList());//list-field-assign//sourceId:1938927_1
            batchQueryAchievementDockByCreateInductionIdReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1938928_1
        }

        /*3-10-08批量查询成果对接by创建人[9976]   */
        Assert.isNull(batchQueryAchievementDockByCreateInductionIdReq.getSpaceId(), "D3批量查询成果对接by创建人(公共)-3-10-08批量查询成果对接by创建人-创建于空间ID不能为空", false);
        listOmsAchievementDocking = mOmsAchievementDockingService.batchQueryAchievementDockByCreateInductionId(batchQueryAchievementDockByCreateInductionIdReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsAchievementDocking_1 = listOmsAchievementDocking;

//步骤1: 3-10-01批量查询成果 - batchQueryAchievement
        List<OmsAchievement> listOmsAchievement = new ArrayList<>();
        if (listOmsAchievementDocking != null && !CollectionUtil.isEmpty(listOmsAchievementDocking) && listOmsAchievementDocking.size() > 0) {
            BatchQueryAchievementReq batchQueryAchievementReq = new BatchQueryAchievementReq();
            batchQueryAchievementReq.setIsArchive("FALSE");//sourceId:1938948_1
            batchQueryAchievementReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1938946_1
            if (listOmsAchievementDocking != null && !CollectionUtil.isEmpty(listOmsAchievementDocking) && listOmsAchievementDocking != null && !CollectionUtil.isEmpty(listOmsAchievementDocking)) {
                batchQueryAchievementReq.setAchievementList(listOmsAchievementDocking.stream().map(item -> item.getAchievementId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1938930_1
            }

            /*3-10-01批量查询成果[9260]   */
            Assert.isNull(batchQueryAchievementReq.getIsArchive(), "D3批量查询成果对接by创建人(公共)-3-10-01批量查询成果-是否存档不能为空", false);
            Assert.isNull(batchQueryAchievementReq.getSpaceId(), "D3批量查询成果对接by创建人(公共)-3-10-01批量查询成果-创建于空间ID不能为空", false);
            listOmsAchievement = mOmsAchievementService.batchQueryAchievement(batchQueryAchievementReq)/*vcase invoke 本地 method 方法调用;*/;


            listOmsAchievement_1 = listOmsAchievement;
        }

        BatchQueryAchievementDockByCreateInductionIdComRespDto retData = new BatchQueryAchievementDockByCreateInductionIdComRespDto();
        //数据集融合  MoreListToOneSource
        if (listOmsAchievementDocking_1 != null && !CollectionUtil.isEmpty(listOmsAchievementDocking_1) && !CollectionUtil.isEmpty(listOmsAchievementDocking_1)) {
            for (OmsAchievementDocking omsAchievementDocking : listOmsAchievementDocking_1) {
                AchievementDockingDto retElm = new AchievementDockingDto();
                retElm.setAchievementDockingId(omsAchievementDocking.getAchievementDockingId());//SimpleFieldAssign//sourceId:395784_2
                retElm.setAchievementId(omsAchievementDocking.getAchievementId());//SimpleFieldAssign//sourceId:395785_2
                retElm.setIsSymbolicAchievement(omsAchievementDocking.getIsSymbolicAchievement());//SimpleFieldAssign//sourceId:395790_2
                retElm.setAchievementTypeNumber(omsAchievementDocking.getAchievementTypeNumber());//SimpleFieldAssign//sourceId:395786_2
                retElm.setAchievementTypeName(omsAchievementDocking.getAchievementTypeName());//SimpleFieldAssign//sourceId:395787_2
                retElm.setAchievementGradeName(omsAchievementDocking.getAchievementGradeName());//SimpleFieldAssign//sourceId:395788_2
                retElm.setDutyDeptName(omsAchievementDocking.getDutyDeptName());//SimpleFieldAssign//sourceId:395791_2
                retElm.setCopyrightObjectTypeCode(omsAchievementDocking.getCopyrightObjectTypeCode());//SimpleFieldAssign//sourceId:395792_2
                retElm.setCopyrightObjectId(omsAchievementDocking.getCopyrightObjectId());//SimpleFieldAssign//sourceId:395793_2
                retElm.setCopyrightObjectName(omsAchievementDocking.getCopyrightObjectName());//SimpleFieldAssign//sourceId:395794_2
                retData.getAchievementDockingList().add(retElm);
                if (listOmsAchievement_1 != null && !CollectionUtil.isEmpty(listOmsAchievement_1)) {
                    for (OmsAchievement omsAchievement : listOmsAchievement_1) {
                        if (omsAchievement.getAchievementId().equals(omsAchievementDocking.getAchievementId())) {
                            retElm.setAchievementNumber(omsAchievement.getAchievementNumber());//SimpleFieldAssign//sourceId:395795_2
                            retElm.setAchievementDesc(omsAchievement.getAchievementDesc());//SimpleFieldAssign//sourceId:397008_2
                            retElm.setAchievementName(omsAchievement.getAchievementName());//SimpleFieldAssign//sourceId:395796_2
                            retElm.setRelatedDocument(omsAchievement.getRelatedDocument());//SimpleFieldAssign//sourceId:395797_2
                            retElm.setAwardedUnit(omsAchievement.getAwardedUnit());//SimpleFieldAssign//sourceId:395798_2
                            retElm.setAwardedTime(omsAchievement.getAwardedTime());//SimpleFieldAssign//sourceId:395799_2
                            retElm.setValidEndTime(omsAchievement.getValidEndTime());//SimpleFieldAssign//sourceId:395800_2
                        }
                    }
                }

            }
        }//sourceId:1938952_1


        return retData;
    }

    @Resource
    private MOmsAchievementDockingService mOmsAchievementDockingService;
    @Resource
    private FwCompStatisticalDataClient fwCompStatisticalDataClient;
    @Resource
    private SmallCircleCommonService smallCircleCommonService;
    @Resource
    private MOmsEvaluationObjectTargetCycleService mOmsEvaluationObjectTargetCycleService;
    @Resource
    private TargetCalcService targetCalcService;
    @Resource
    private MOmsTaskService mOmsTaskService;

}
